<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/10 0010
 * Time: 16:53
 */

namespace Cuke\Acl;


use Phalcon\Acl\ResourceAware;

class ModelResource implements ResourceAware
{
    protected $roleId;

    protected $resourceName;

    protected $userId;

    public function __construct($roleId, $resourceName, $userId)
    {
        $this->roleId           = $roleId;
        $this->resourceName = $resourceName;
        $this->userId       = $userId;
    }

    public function getRoleId()
    {
        return $this->roleId;
    }

    public function getUserId()
    {
        return $this->userId;
    }

    // Implemented function from ResourceAware Interface
    public function getResourceName()
    {
        return $this->resourceName;
    }
}